const ConKeeper = require('./ConKeeper')

class RoomKeeper {
    rooms = {
        '/': new ConKeeper()
    }

    initRoom(roomName) {
        if (!(this.rooms[roomName] instanceof ConKeeper)) {
            this.rooms[roomName] = new ConKeeper()
            return 1
        } else {
            return -1
        }
    }
}

module.exports = new RoomKeeper()